import Vue from 'vue'
import VueRouter from 'vue-router'
import MainUI from "../components/MainUI.vue"
import Userhistory from "../components/Userhistory.vue"
import Userfavor from "../components/Userfavor.vue"
import Usersub from "../components/Usersub.vue"
import GroupPlayer from "../components/GroupPlayer.vue"
import Userspace from "../components/Userspace.vue"
import Creatercenter from "../components/Creatercenter.vue"
import Search from "../components/Search.vue"

Vue.use(VueRouter)

export default new VueRouter({
    routes: [{
            path: '/',
            component: MainUI,
            meta: {
                title: "医慕",

            }
        },
        {
            path: '/history',
            component: Userhistory,
            meta: {
                title: "历史记录",

            }
        },
        {
            path: '/favor',
            component: Userfavor,
            meta: {
                title: "收藏夹",

            }
        },
        {
            path: '/subscribe',
            component: Usersub,
            meta: {
                title: "订阅",

            }
        },
        {
            name: 'group',
            path: '/gid',
            component: GroupPlayer,
            meta: {
                title: "这里获取视频标题",

            }
        },
        {
            name: 'space',
            path: '/space',
            component: Userspace,

        },
        {
            name: 'creater',
            path: '/creater',
            component: Creatercenter,
            meta: {
                title: "创作中心",

            }
        },
        {
            name: 'search',
            path: '/search',
            component: Search,
            meta: {
                title: "全站搜索",

            }
        },

    ]
})